<template>
<div>
    <Filmitem :nowplays="nowplays"></Filmitem>
    
</div>
</template>

<script>
import Filmitem from "../../components/Filmitem";
//请求api
import{FilmListData} from '../../api/api'

export default {
    components:{
        Filmitem,
    },
 data () {
return {
    page:1,
    nowplays:[],
}
 },
async mounted() {
    let ret = await filmListData(this.page);
    this.nowplays = ret.data.data.films
  },
methods:{
    // urlFn(id){

    //     // this.$router.push(`/detail/${id}`);
    //     this.$router.push({name:'detail' , params:{id}});
    // }
}
}
</script>

<style lang = "scss" scoped>

</style>
